﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region H_cxlrule
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_CxlRule
   {
        private int? _Cxlrule_id;
        private int? _Property_id;
        private string _NoTimeFrame;
        private string _Rule;
        private string _Description;
        private string _PenaltyValue;
        private int? _CNumber;
        private int? _CancelInPenalty;
        private string _NonRefundable;
        private string _Period;
        private string _Canceltime;
        private string _Cancelday;
        private int? _languagetype;
        private int? _userid;
        private DateTime? _updatetime;
        



        public HCRS_CxlRule()
        {}


        public HCRS_CxlRule(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["Cxlrule_id"].ToString()!="")_Cxlrule_id=Convert.ToInt32(dr["Cxlrule_id"].ToString());
                if(dr["Property_id"].ToString()!="")_Property_id=Convert.ToInt32(dr["Property_id"].ToString());
                _NoTimeFrame=dr["NoTimeFrame"].ToString();
                _Rule=dr["CRule"].ToString();
                _Description=dr["Description"].ToString();
                _PenaltyValue=dr["PenaltyValue"].ToString();
                if(dr["CNumber"].ToString()!="")_CNumber=Convert.ToInt32(dr["CNumber"].ToString());
                if(dr["CancelInPenalty"].ToString()!="")_CancelInPenalty=Convert.ToInt32(dr["CancelInPenalty"].ToString());
                _NonRefundable=dr["NonRefundable"].ToString();
                _Period=dr["Period"].ToString();
                _Canceltime=dr["Canceltime"].ToString();
                _Cancelday=dr["Cancelday"].ToString();
                if(dr["languagetype"].ToString()!="")_languagetype=Convert.ToInt32(dr["languagetype"].ToString());
                if(dr["userid"].ToString()!="")_userid=Convert.ToInt32(dr["userid"].ToString());
                if(dr["updatetime"].ToString()!="")_updatetime=Convert.ToDateTime(dr["updatetime"].ToString());
                if (dr["Rulelevel"].ToString() != "") Rulelevel = Convert.ToInt32(dr["Rulelevel"].ToString());
                Rulename = dr["rulename"].ToString();
            }
        }



        #region 公共属性 

        public int? Rulelevel
        {
            get;
            set;
        }
        public string Rulename
        { get; set; }
         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Cxlrule_id", "pk")]
         public int? id
         {
             get { return _Cxlrule_id; }
             set { _Cxlrule_id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Property_id")]
         public int? Property_id
         {
             get { return _Property_id; }
             set { _Property_id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("NoTimeFrame")]
         public string NoTimeFrame
         {
             get { return _NoTimeFrame; }
             set { _NoTimeFrame = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("CRule")]
         public string Rule
         {
             get { return _Rule; }
             set { _Rule = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Description")]
         public string Description
         {
             get { return _Description; }
             set { _Description = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("PenaltyValue")]
         public string PenaltyValue
         {
             get { return _PenaltyValue; }
             set { _PenaltyValue = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("CNumber")]
         public int? CNumber
         {
             get { return _CNumber; }
             set { _CNumber = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("CancelInPenalty")]
         public int? CancelInPenalty
         {
             get { return _CancelInPenalty; }
             set { _CancelInPenalty = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("NonRefundable")]
         public string NonRefundable
         {
             get { return _NonRefundable; }
             set { _NonRefundable = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Period")]
         public string Period
         {
             get { return _Period; }
             set { _Period = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Canceltime")]
         public string Canceltime
         {
             get { return _Canceltime; }
             set { _Canceltime = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Cancelday")]
         public string Cancelday
         {
             get { return _Cancelday; }
             set { _Cancelday = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("languagetype")]
         public int? languagetype
         {
             get { return _languagetype; }
             set { _languagetype = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("userid")]
         public int? userid
         {
             get { return _userid; }
             set { _userid = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("updatetime")]
         public DateTime? updatetime
         {
             get { return _updatetime; }
             set { _updatetime = value; }
         }



        #endregion


    }
    #endregion
}
